package com.kws.system.mapper.merchant;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kws.system.domain.info.QueryMerchantUserInfo;
import com.kws.system.domain.merchant.QueryDeviceAuditRq;
import com.kws.system.domain.merchant.TbDevice;
import com.kws.system.domain.merchant.info.QueryDeviceAuditInfo;
import com.kws.system.domain.merchant.info.QueryDeviceInfo;
import org.apache.ibatis.annotations.Param;

public interface DeviceAuditMapper extends BaseMapper<TbDevice> {
    Page<QueryDeviceAuditInfo> queryDeviceAuditPage(@Param("page") Page<QueryDeviceAuditInfo> page, @Param("query") QueryDeviceAuditRq query);

    QueryDeviceInfo queryDeviceAuditById(@Param("id") Long id);

    QueryMerchantUserInfo queryMerchantUserByDeviceId(@Param("deviceId") Long deviceId);
}
